import Vue from 'vue'
import Home from '@/views/home'
import News from '@/views/news'
import Sports from '@/views/sports'
import DomSports from '@/views/DomesticSports'
import ForSports from '@/views/ForeignSports'
import SportsIndex from '@/views/SportsIndex'
import VueRouter from 'vue-router'
import About from '@/views/About'
import Contacts from '@/views/Contacts'
import UlRouter from '@/views/UlRouter'
import SecondAlice from '@/views/SecondAlice'
import SecondAll from '@/views/SecondAll'
import SecondBob from '@/views/SecondBob'
import ThirdBlog from '@/views/ThirdBlog'
import ThirdFax from '@/views/ThirdFax'
Vue.use(VueRouter)
const router = new VueRouter({
  routes: [
    {
      path: '/',
      redirect:'/home'
    },
    {
      path: '/home',
      component:Home
    },
    {
      path: '/news',
      component:News
    },
    {
      path: '/sports',
      component: Sports,
      children: [
        {
          path: '/',
          redirect:'/sportsindex'
       },
        {
          path: '/domesticsports',
          component: DomSports
        },
        {
          path: '/foreginsports',
          component: ForSports
        },
        {
          path: '/sportsindex',
          component:SportsIndex
        },
      ]
    },
    {
      path: '/about',
      component:About
    },
    {
      path: '/contacts',
      component: Contacts,
      children: [
        {
          path: 'secondalice',
          component: SecondAlice,
        },
        {
          path: 'secondbob',
          component: SecondBob,
          children: [
            {
              path: 'thirdblog',
              component:ThirdBlog,
            },
            {
              path: 'thirdfax',
              component:ThirdFax,
            },
          ]
        },
        {
          path: 'secondall',
          component:SecondAll,
        },
      ]
    },
    {
      path: '/ulrouter',
      component:UlRouter
    },
]
})
export default router